package com.srxz.personnelsystem.system.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @ClassName: UserDepart
 * @author: wgchao
 * @createTime: 2019/1/24 10:27 AM
 * @Description: 用户部门关系表
 */
@Entity
@Table(name = "user_department")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserDepart implements Serializable {
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "id")
    private String id;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "department_id")
    private String departmentId;
}
